package com.chivan.encoder.recorder;

import android.os.Environment;

/*
 * Create by weslywang on 2019-11-04
 * Copyright © 2019 Tencent
 *
 * Description:
 */
public class Constant {
    static final public String LOCAL_FILE_PATH = Environment.getExternalStorageDirectory().getAbsolutePath() + "/com.tencent.aieducation/";

    public enum RecorderAudioFormat {
        not_use,
        pcm,
        wav,
        mp3,
        speex_wb_7,
        opus,
        noData; // 不会进行编码 但会保存空文件，会回调接口;

        public static RecorderAudioFormat indexOf(int index) {
            RecorderAudioFormat re = RecorderAudioFormat.not_use;
            for (RecorderAudioFormat value : RecorderAudioFormat.values()) {
                if (value.ordinal() == index) {
                    re = value;
                }
            }
            return re;
        }
    }
}

